package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.AppStyleTab;
import com.scpii.universal.hibernate.entity.AppStyleTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class AppStyleTabService implements BaseInterface<AppStyleTab> {
	private static final Logger log = LoggerFactory
			.getLogger(AppStyleTabService.class);
//	private BaseDao<AppStyleTab> appStyleTabDao = SpringBeanFactory.appStyleTabDao;
	private BaseDao<AppStyleTab> appStyleTabDao;
	
	public AppStyleTab get(Integer id) throws Exception {
		return appStyleTabDao.get(id);
	}

	public List<AppStyleTab> getAll() throws Exception {
		return appStyleTabDao.getAll();
	}

	public AppStyleTab get(String propertyName, Object value) throws Exception {
		return null;
	}

	public List<AppStyleTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(AppStyleTab obj) throws Exception {

	}

	public void update(AppStyleTab obj) throws Exception {

	}

	public void delete(AppStyleTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<AppStyleTab> hqlGetList(String hql, Map<String, Object> argsMap)
			throws Exception {
		return appStyleTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		appStyleTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return appStyleTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<AppStyleTab> sqlGetList(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return appStyleTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		appStyleTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return appStyleTabDao.sqlGetNum(sqls, argsMap);
	}

	//Setter
	public void setAppStyleTabDao(BaseDao<AppStyleTab> appStyleTabDao) {
		this.appStyleTabDao = appStyleTabDao;
	}
}